//package com.wiloon.javaeex.ios.apns;
//
//import java.util.Date;
//import java.util.Map;
//
//import com.notnoop.apns.APNS;
//import com.notnoop.apns.ApnsService;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//
//public class Apns {
//    private static Logger logger = LoggerFactory.getLogger(Apns.class);
//
//    public static void main(String[] args) {
//
//        // regisger success:<aabe5c28 aae094f4 7d80e77e fbe9d47c 9ccf3a5c
//        // 28efb18f 5524cfdf 08e28b85>
//
//        String token = "aabe5c28aae094f47d80e77efbe9d47c9ccf3a5c28efb18f5524cfdf08e28b85";
//        ApnsService service = APNS
//                .newService()
//                .withCert("D:\\project\\pushDemo\\p12frommac\\\\ipush.p12",
//                        "abcd@1234").withSandboxDestination().build();
//
//        String payload = APNS.newPayload().alertBody("Push notification message.").build();
//
//        service.push(token, payload);
//
//        Map<String, Date> inactiveDevices = service.getInactiveDevices();
//        for (String deviceToken : inactiveDevices.keySet()) {
//            Date inactiveAsOf = inactiveDevices.get(deviceToken);
//
//        }
//    }
//}
